package cn.itsource.org.service;

import cn.itsource.basic.util.PageList;
import cn.itsource.org.domain.Department;
import cn.itsource.org.query.DepartmentQuery;
import org.springframework.dao.DeadlockLoserDataAccessException;

import java.util.List;

public interface IDepartmentService {

    void add(Department department);

    void delete(Long id);

    void update(Department department);

    Department queryById(Long id);

    List<Department> queryAll();

    PageList<Department> queryPage(DepartmentQuery departmentQuery);
}
